import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Block {
    // block的数字
    private int num;
    private int r;
    private int c;

    // 判断两个block能否合并
    public boolean isMerge(Block bl) {
        return bl.num == this.num;
    }

    // 双倍自己的num
    public void doubleNum() {
        this.num = 2 * this.num;
    }


}
